<?php
/**
 * Created by PhpStorm.
 * User: 1
 * Date: 2017/11/16
 * Time: 13:04
 */

namespace app\admin\validate;
use think\Validate;

class Rank extends Validate
{
    protected $rule = [
        'student_rank' => 'require',
    ];
    protected $msg = [
        'student_rank.require' => '学生等级名称字段必须填写',
    ];
    protected $scene = [
      'add_student_rank' => ['student_rank',],
      'edit_student_rank' =>['student_rank',]
    ];

}